const {defineConfig} = require('@vue/cli-service')
/*module.exports = defineConfig({
  transpileDependencies: true
})*/

module.exports = {
    transpileDependencies: true,
    lintOnSave: false, // 关闭语法检查
    devServer: {
        proxy: {
            '/api': {
                // 请求前缀
                target: 'http://localhost:9000',
                pathRewrite: {'^/api': ''},
                changeOrigin: true // 用于控制请求头中的host值
            }
        }
    }
}
